package org.dromara.system.domain.bo;

import org.dromara.system.domain.WbCandidateFile;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 中标候选人附件业务对象 wb_candidate_file
 *
 * @author Lion Li
 * @date 2024-05-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WbCandidateFile.class, reverseConvertGenerate = false)
public class WbCandidateFileBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 候选人公示id
     */
    @NotNull(message = "候选人公示id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long candidateId;

    /**
     * 文件原始名称
     */
//    @NotBlank(message = "文件原始名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileOriginalName;

    /**
     * 附件名称
     */
    @NotBlank(message = "附件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 附件类型
     */
//    @NotNull(message = "附件类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fileType;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 附件大小
     */
//    @NotNull(message = "附件大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fileSize;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * OSSID
     */
    @NotNull(message = "OSSID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ossId;


}
